package com.douqu.game.core.e;

/**
 * 城市奖励的归属方
 * @author: miracle.
 * Description:
 * Date: 2018/7/4 0004 下午 12:36
 * Huan Yu Copyright (c) 2017 All Rights Reserved.
 */
public enum E_CityDropBelong_Status implements BaseEnum {

    CITY_DROP_PERSON(1,"归属个人"),
    CITY_DROP_POWER(2,"归属势力"),
    CITY_DROP_ALL(3,"归属所有人")
    ;

    int code;

    String msg;

    E_CityDropBelong_Status(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public static E_CityDropBelong_Status getStatus(int value){
        for ( E_CityDropBelong_Status status: E_CityDropBelong_Status.values()){
            if (status.code == value){
                return status;
            }
        }
        return null;
    }
}
